package org.chen.model.elastic;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.MultiMatchQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.data.domain.Sort;
import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AdminArticleQueryParam {
    private String keyword;     // 关键词搜索
    private String source;      // 来源
    private Integer status;     // 状态
    private String category;    // 分类
    private List<String> tags;  // 标签
    private Boolean isTop;      // 是否置顶
    private String sortField;   // 排序字段
    private String sortOrder;   // 排序方式
    private Integer page;       // 页码
    private Integer size;       // 每页数量

}
